package com.weitu.base.entity;

import java.util.List;
import java.util.Map;

/**
 * @author zhangqingxi 2017/3/14
 */
public class Tree {
    /**
     * 绑定节点的标识值。
     */
    private String id;

    /**
     * 显示的节点文本。
     */
    private String text;

    /**
     * 显示的节点图标CSS类ID。
     */
    private String iconCls;

    /**
     * 该节点是否被选中。
     */
    private String checked;

    /**
     * 节点状态，'open' 或 'closed'。
     */
    private String state;

    /**
     * 绑定该节点的自定义属性。
     */
    private Map attributes;

    /**
     * 子级
     */
    private List<Tree> children;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getIconCls() {
        return iconCls;
    }

    public void setIconCls(String iconCls) {
        this.iconCls = iconCls;
    }

    public String getChecked() {
        return checked;
    }

    public void setChecked(String checked) {
        this.checked = checked;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Map getAttributes() {
        return attributes;
    }

    public void setAttributes(Map attributes) {
        this.attributes = attributes;
    }

    public List<Tree> getChildren() {
        return children;
    }

    public void setChildren(List<Tree> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "Tree{" +
                "id='" + id + '\'' +
                ", text='" + text + '\'' +
                ", iconCls='" + iconCls + '\'' +
                ", checked='" + checked + '\'' +
                ", state='" + state + '\'' +
                ", attributes=" + attributes +
                ", children=" + children +
                '}';
    }
}
